<template>
  <div>
    {{ name }}
    {{ arr }}
  </div>
</template>

<script>
import {
  reactive,
  toRefs
} from 'vue';
export default {
  name: "temp",
  setup() {
    let obj = reactive({
      name: "张三",
      arr: []
    });
  
    return {
      ...toRefs(obj)
    }
  }
}
</script>